const http = require('http')

const server = http.createServer()

server.on('request', req => {
    const url = req.url
    const method = req.method

    console.log(req)
    console.log(url)
    console.log(method)
    console.log('服务器启动了')
})

server.listen(81, (req, res) => {
    console.log('http://localhost:81')
})



